<?php if($node->hasTestResult()): ?>
<div style="font-size: 1.1em;">
  <div class='tab-result bg-INCOMPLETE'><?php echo (integer)$node->sumIncomplete; ?> incomplete</div>
  <div class='tab-result bg-ERROR'><?php echo (integer)$node->sumError; ?> errors</div>
  <div class='tab-result bg-FAILURE'><?php echo (integer)$node->sumFailure; ?> failures</div>
  <div class='tab-result bg-SUCCESS'><?php echo (integer)$node->sumSuccess; ?> ok. </div>
</div> 
<?php endif; ?>